﻿
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@RenderSection("TitleSection")</title>
    @RenderSection("HeaderSection", false)
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/login2.css" rel="stylesheet" />
    <script>
        $("#mylogin").on("show.modal", function (e) {
            var link = $(e.relatedTarget);
            $(this).find(".modal-content").load(link.attr("href"));
        });
    </script>
    <style type="text/css">
        html {
            height: 100%;
        }

        body {
            min-height: 100%;
            margin: 0;
            padding: 0;
            position: relative;
        }

        header {
            background-color: #ffe4c4;
        }

        main {
            padding-bottom: 100px;
            /*background-color: #bdb76b;*/
        }
        /* main的padding-bottom值要等于或大于footer的height值 */
        footer {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 100px;
        }

        footer {
            background: #333;
            color: #eee;
            font-size: 11px;
            padding: 20px;
        }

        ul.unstyled {
            list-style: none;
            padding: 0;
        }

        footer h6 {
            color: white;
        }
    </style>
</head>
<body>
    <header>
        <nav class="navbar navbar-inverse ">
            <div class="container">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="/Home/Index">二手车交易平台</a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        @*<li><a href="#">二手车信息管理</a></li>
                            <li><a href="#">预约看车</a></li>*@
                        @{
                            Html.RenderAction("OrdUserFunc", "Home");
                        }
                        @{ 
                            Html.RenderAction("AdminFunc", "Home");
                        }
                    </ul>
                    @{
                        Html.RenderAction("IfLogin", "Home");
                    }
                    @*<ul class="nav navbar-nav navbar-right">
                <li><a href="/Authentication/Login" data-toggle="modal" data-target="#mylogin">登录</a></li>
                <li><a href="#">注册</a></li>
            </ul>*@
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        </nav>
    </header>

    <div class="modal fade" id="mylogin" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
            </div>
        </div>
    </div>
    <main>
        <div class="container">
            @RenderSection("ContentBody")
        </div>
    </main>
    @Html.Partial("Footer")
    <script src="~/scripts/jquery-3.1.1.min.js"></script>
    <script src="~/scripts/bootstrap.min.js"></script>

</body>
</html>
